package stock_service;

import java.sql.SQLException;
import java.util.List;

import stock_dao.WareHouseDao;
import stock_vo.WareHouseVO;

public class WareHouseServiceImpl implements WareHouseService{
	private WareHouseDao wareHouseDao;
	public WareHouseServiceImpl(WareHouseDao wareHouseDao) {
		super();
		this.wareHouseDao = wareHouseDao;
	}
	@Override
	public void insertWareHouse(WareHouseVO vo) throws SQLException {
		wareHouseDao.insertWareHouse(vo);		
	}
	@Override
	public List selectWareHouse() throws SQLException {
		return wareHouseDao.selectWareHouse();
	}
	@Override
	public void deleteWareHouse(String warehouse_code) throws SQLException {
		wareHouseDao.deleteWareHouse(warehouse_code);
	}
	@Override
	public List checkWareHouse(String warehouse_name) throws SQLException {
		return wareHouseDao.checkWareHouse(warehouse_name);
	}
}
